import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('goods')
export class Good {
    @PrimaryGeneratedColumn('uuid')
    id:string

    @Column({
        type:'varchar',
        length:100
    })
    name:string

    @Column({
        type:'float'
    })
    price:number

    @Column({
        type:'varchar',
        length:255
    })
    img:string

    @Column({
        type:'varchar',
        length:255
    })
    pid:string
}
